package com.guashu.springbootdistributedid.log;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.LoggerFactory;

import java.util.Arrays;
import java.util.List;
import java.util.logging.Logger;

@Slf4j
public class LoggerExample {

    public static void main(String[] args) {
        MyClass myObject = new MyClass("John", 30);
        log.info("Object info: {}", myObject); // 直接使用 {} 占位符输出对象信息
        List<String> myList = Arrays.asList("A", "B", "C");
        log.info("List info: {}", myList); // 直接使用 {} 占位符输出集合信息
    }
}